package com.pretty.adminapp.utils;
/*
 * Copyright 2008-2015 GuanAiHui inc. 
 */

import javax.servlet.http.HttpServletRequest;

/**
 * WebUtils:
 *
 * @author Dennis Ge
 */
public class WebUtils {
	
	public static  boolean isAjaxRequest(HttpServletRequest request) {
		String requestedWith = request.getHeader("X-Requested-With");
		return requestedWith != null ? "XMLHttpRequest".equalsIgnoreCase(requestedWith) : false;
	}

}
